<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
</head>
<body>

日期date: <span th:text="${#dates.format(date,'yyyy-MM-dd HH:mm:ss')}"></span><br>
工资salary: <span th:text="${#numbers.formatDecimal(salary,0,2)}"></span><br>
集合list长度: <span th:text="${#lists.size(list)}"></span><br>
集合list内容: <span th:text="${#lists.toList(list)}"></span><br>
获取并截取字符串: <span th:text="${#strings.substring(word,0,5)}"></span><br>

<div th:insert="~{login}"></div>
<hr>
<div th:insert=""></div>
</body>
</html>